import { http } from '@/utils/http'

export const select_by_date = (date) => {
  return http({
    url: `/wfmanage/transapply/select_trans_by_date?date=${date}`,
    method: 'post',
  })
}

export const wfTypeFindPage = () => {
  return http({
    url: "/wfmanager/wfType/findPage",
    method: 'get',
  })
}

export const permissionUserInfo = (userId) => {
  return http({
    url: `/admin/sys/permission/user/info/${userId}`,
    method: 'get',
  })
}

export const select_depts_by_deptIds = (deptIds) => {
  return http({
    url: `/wfmanage/common/select_depts_by_deptIds?deptIds=${deptIds}`,
    method: 'get',
  })
}

export const select_user_by_ids = (ids) => {
  return http({
    url: `/select_user_by_ids?ids=${ids}`,
    method: 'post',
  })
}

export const select_trans_by_date_status = (date="",status=2) => {
  return http({
    url: `/wfmanage/transapply/select_trans_by_date_status?date=${date}&status=${status}`,
    method: 'get',
  })
}